gschema_files = [
  'top.dddpeter.GdmSettingsDp.gschema.xml',
  'top.dddpeter.GdmSettingsDp.accessibility.gschema.xml',
  'top.dddpeter.GdmSettingsDp.appearance.gschema.xml',
  'top.dddpeter.GdmSettingsDp.fonts.gschema.xml',
  'top.dddpeter.GdmSettingsDp.misc.gschema.xml',
  'top.dddpeter.GdmSettingsDp.mouse.gschema.xml',
  'top.dddpeter.GdmSettingsDp.night-light.gschema.xml',
  'top.dddpeter.GdmSettingsDp.pointing.gschema.xml',
  'top.dddpeter.GdmSettingsDp.power.gschema.xml',
  'top.dddpeter.GdmSettingsDp.sound.gschema.xml',
  'top.dddpeter.GdmSettingsDp.tools.gschema.xml',
  'top.dddpeter.GdmSettingsDp.top-bar.gschema.xml',
  'top.dddpeter.GdmSettingsDp.touchpad.gschema.xml',
  'top.dddpeter.GdmSettingsDp.window-state.gschema.xml',
]
install_data(gschema_files,
  install_dir: get_option('datadir') / 'glib-2.0/schemas',
)

compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
  test(
    'Validate schema files',
    compile_schemas,
    args: ['--strict', '--dry-run', meson.current_source_dir()]
  )
endif
